<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

	<c:if test="${user.userId==null}">
		<c:redirect url="./login.jsp" />
	</c:if>
	<body>
	<table class="headerTable">
		<tr>
			<td align="center" colspan="2"><img src="images/logo.png" border="0"></td>
		</tr>
		<tr>
			<td align="left">Korisnik: ${user.firstName} ${user.lastName}</td>
			<td align="right"><a href="./editProfile.jsp">Izmena ličnih podataka</a>&nbsp;|&nbsp;<a href="./Logout">Odjava</a></td>
		</tr>
		<c:if test="${user.type=='A'}">
			<tr>
				<td align="left" colspan="2"><font color="#FF0000"><b>Adminstratorski režim</b></font></td>
			</tr>
		</c:if>
	</table>
